package day06_homework_1;

import java.util.Scanner;

public class VehicleTest {
	public static void main(String[] args) {
		Vehicle vehicle = new Vehicle();
		Scanner input = new Scanner(System.in);
		System.out.println("请输入初始体积：");
		vehicle.setSize(input.nextDouble());
		System.out.println("请输入初始速度：");
		vehicle.setSpeed(input.nextDouble());
		System.out.println("当前交通工具情况为：");
		System.out.println(vehicle.toString());
		System.out.println("请输入需要增加的速度值：");
		vehicle.speedUp(input.nextDouble());
		System.out.println("当前速度为：");
		System.out.println(vehicle.getSpeed());
		System.out.println("请输入需要减少的速度值：");
		vehicle.speedDown(input.nextDouble());
		System.out.println("当前速度为：");
		System.out.println(vehicle.getSpeed());
	}
}
